package com.ruoyi.app.service.demo;

import cn.hutool.json.JSONUtil;
import com.ruoyi.service.demo.entity.DemoEntity;
import com.ruoyi.service.demo.service.DemoService;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 作用： Demo 业务
 * </p>
 *
 * @author zhanglianbao
 * @since 2025-09-27 9:24
 */
@Component
public class DemoBusiness {

  @Resource
  private DemoService demoService;
    public String getDemo() {
      final DemoEntity byId = demoService.getById(1L);
      return JSONUtil.toJsonStr(byId);
    }
}
